package com.guangyunl.f_javabean;

public class Test01 {
    public static void main(String[] args) {
        // 调用无参构造
        Student student = new Student();
        student.setName("李四");
        student.setSid(23);
        System.out.println(student.getName() + "学号" + student.getSid());

        System.out.println("=======================");
        // 调用有参构造
        Student student1 = new Student(22, "张三");

        System.out.println("student1.getName() = " + student1.getName());
        System.out.println("student1.getSid() = " + student1.getSid());
    }
}
/*
李四学号23
=======================
student1.getName() = 张三
student1.getSid() = 22
 */